<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use Dcat\Admin\Layout\Content;

class HomeController extends Controller
{
    public function index(Content $content)
    {
        return $content
            ->header('党史知识竞赛')
            ->body(<<<HTML
<div class="col-md-12">
    <style>
        .dashboard-title .links {
            text-align: center;
            margin-bottom: 2.5rem;
        }
        .dashboard-title .links > a {
            padding: 0 25px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: .1rem;
            text-decoration: none;
            text-transform: uppercase;
            color: #fff;
        }
        .dashboard-title h1 {
            font-weight: 200;
            font-size: 2.5rem;
        }
        .dashboard-title .avatar {
            background: #fff;
            border: 2px solid #fff;
            width: 70px;
            height: 70px;
        }
    </style>

    <div class="dashboard-title card bg-primary">
        <div class="card-body">
            <div class="text-center ">
                <img class="avatar img-circle shadow mt-1" src="/vendor/dcat-admin/images/logo.png">

                <div class="text-center mb-1">
                    <h1 class="mb-3 mt-2 text-white">党史知识竞赛</h1>
                    <div class="links">
                        <a href="/admin/users">用户</a>
                        <a href="/admin/units">单位</a>
                        <a href="/admin/categories">分类</a>
                        <a href="/admin/questions">题库</a>
                        <a href="/admin/statistics">统计</a>
                        <a href="/admin/settings">设置</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
HTML
            );
    }
}
